import { useUserManagerStore } from '~/stores/userManagerStore'

export default defineNuxtRouteMiddleware(async (to) => {
  const userManagerStore = useUserManagerStore()
  if (to.name !== 'ad-callback') {
    await userManagerStore.getUser()
  }
})
